var randomUtils = {};
randomUtils.randomString = function randomString(len, data) {
    var chars = data || '1234567890';
    /****默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1****/
    len = len || chars.length;
    var maxPos = chars.length;
    var code = '';
    for (i = 0; i < len; i++) {
        code += chars.charAt(Math.floor(Math.random() * maxPos));
    }
    return code;
};

module.exports = randomUtils;
